import os


class MyFile:
    def __init__(self):
        self.dir = '../static/upload/'

        # 创建文件夹

    def file_mkdir(self, dirname):
        path = self.dir + str(dirname)
        if not os.path.exists(path):
            os.mkdir(path)

    def list_dir(self, dirname):
        path = self.dir + str(dirname)
        list = os.listdir(path)
        return list


myfile = MyFile()
# myfile.file_mkdir(1)
# list = myfile.list_dir(1)
# print(list)
